package com.example.model.entity.tribune;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 评论表
*/
@Data
@ApiModel(description = "评论信息")
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(hidden = true,value = "ID")
    private Integer id;
    /** 内容 */
    @ApiModelProperty(value = "内容")
    private String content;
    /** 评论人 */
    @ApiModelProperty(value = "用户评论用户ID")
    private Integer userId;
    @ApiModelProperty(value = "医生评论ID")
    private Integer doctorId;
    /** 父级ID */
    @ApiModelProperty(value = "父级ID")
    private Integer pid;
    /** 评论时间 */
    @ApiModelProperty(value = "评论时间")
    private String time;
    /** 关联ID */
    @ApiModelProperty(value = "帖子ID")
    private Integer postId;
    /** 根节点ID */
    @ApiModelProperty(value = "根节点ID")
    private Integer rootId;
    private String userName;
    private List<Comment> children;
    private String avatar;
    private String parentUserName;


}
